﻿<Window x:Class="clipSa.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="CLIPboard SAve" Height="90" Width="120" WindowStyle="None" 
        Cursor="Arrow" AllowsTransparency="True" Opacity="1" Visibility="Visible" 
        Background="Transparent" ResizeMode="CanMinimize"  
        Icon="Images\arrow_down.ico"   
        WindowStartupLocation="Manual" ShowActivated="True">
    <Window.ContextMenu>
        <ContextMenu Name="wcm"  StaysOpen="true" >
            <MenuItem Header="Hide" Click="MinimiseToTray"/>
            <MenuItem Header="Settings" Click="OpenSetingsWindow"/>
            <MenuItem Header="Close" Click="ExitFromThere" />
        </ContextMenu>
    </Window.ContextMenu>
    <Border  Margin="10" CornerRadius="50" MouseLeftButtonDown="MoveWindow">
        <Border.Background>
            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#FF71E871" Offset="0" />
                <GradientStop Color="#FFF8F8F8" Offset="1" />
            </LinearGradientBrush>
        </Border.Background>
        <Grid>
            <Button Content="Save" x:Name="SaveButton"  
                    FontFamily="Verdana" 
                    FontSize="12" FontWeight="Bold" PreviewMouseLeftButtonDown="SaveButtonClick" Margin="20" Foreground="#FFEF3737" BorderBrush="#FF589C79" DataContext="{Binding}">
                <Button.ContextMenu>
                    <ContextMenu Name="cm"  StaysOpen="true" >
                        <MenuItem Header="Hide" Click="MinimiseToTray"/>
                        <MenuItem Header="Settings" Click="OpenSetingsWindow"/>
                        <MenuItem Header="Close" Click="ExitFromThere" />
                    </ContextMenu>
                </Button.ContextMenu>
                <Button.Background>
                    <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
                        <GradientStop Color="Black" Offset="0" />
                        <GradientStop Color="White" Offset="1" />
                    </LinearGradientBrush>
                </Button.Background>
            </Button>
    </Grid>
    </Border>
</Window>
